package com.group.mall.service;

import com.group.mall.common.Result;
import com.group.mall.domain.POJO.ShoppingCart;

import java.util.List;

/**
 * @Author：xiexu
 * @Date：2024/6/18 14:21
 */
public interface CartService {
    Result addCart(ShoppingCart cart);

    ShoppingCart selectCartByUserIdAndItemId(ShoppingCart cart);

    List<ShoppingCart> listCart(Integer userId);

    List<ShoppingCart> getCartById(Integer userId);

    boolean deleteCartById(Integer cartId, Integer userId);

    boolean updateCart(ShoppingCart cart);
}
